// 放置查看内容接口
import requers from "../../config/newaxios";
const urls = "/after"
const get = get

// 获取分类内容
function obtainunit(data) {
  return requers({
    url: urls + "/obtainunit",
    method: get,
    data
  })
}

// 查询口味
function capacity(data) {
  return requers({
    url: urls + "/capacity",
    method: get,
    data
  })
}

// 查询容量
function flavor(data) {
  return requers({
    url: urls + "/flavor",
    method: get,
    data
  })
}

// 查询菜品分类
function foodtype(data) {
  return requers({
    url: urls + "/foodtype",
    method: get,
    data
  })
}
// 商品列表
function shoplist(data) {
  return requers({
    url: urls + "/shoplist",
    method: get,
    data
  })
}

// 商品列表分类分页接口
function sppaging(data) {
  return requers({
    url: urls + "/sppaging" + "?page=" + data.pagenum,
    method: get,
    data
  })
}


// 获取商家信息
function showsetSeller(data) {
  return requers({
    url: urls + "/showsetSeller",
    method: get,
    data
  })
}




export default {
  obtainunit,
  capacity,
  flavor,
  foodtype,
  shoplist,
  sppaging,
  showsetSeller
}
